-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update OKHTTP3 to v4.9.0 (v3.x -> v4.x) #14662
Conversation
I don't think we can, or want to make this bump. The Kubernetes Client which AFAIR the main reason we have OkHTTP in the BOM is still on 3.x and doesn't plan to move to 4.x anytime soon. |
Agree that makes sense, however given that v4 makes an explicit effort to be fully backward compatible with v3, is it not worth trying? The functionality used by the K8s client (and others) would be standard functionality that should work, i.e. let the integration tests do their thing? |
TBH, we are really against dragging in any sort of Kotlin related thing as a dependency. |
Yeah the kotlin stdlib dependency is problematic unfortunately :/ At the moment the alternatives are ranked by simplest to hardest (from my current POV :)
|
One of the main reasons we picked I have terrible experiences with frameworks bringing in general-purpose libraries (remember guava?) and I'd like to avoid that. So, I am leaning towards using vertx. |
A big +1 for Vert.x. |
Hi, I have no idea about the implications of adding the Kotlin runtime to the build. The claim from the project maintainers is that OkHttp4 is backwards compatible with OkHttp3. I'm not sure if any of the projects using Quarkus might have tried tweaking the dependency configuration in their pom.xml to make use of OkHttp4 and what the result was. I really like the Vert.x idea (so +1). There would be a lot of work involved, + real breaking changes (especially for those who implemented custom interceptors, etc. for OkHttp), but at least we'd be depending on something we could rely on. |
I created a new issue in fabric8io/kubernetes-client#2764 requesting migration to the Vert.x HTTP Client. |
Closing as upgrading it may not be a good idea given the reasons stated above |
OkHTTP is referenced by the Quarkus BOM and is on a legacy v3 Java version. OkHTTP migrated fully to Kotlin in v4 with full backward compatibility to Java and v3.
https://square.github.io/okhttp/upgrading_to_okhttp_4/